﻿using System;
using System.Data;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class gold : AdminpageBase
{
    protected DataTable tzlist = null;
    protected long id = ReadRequest.RequestLong("cid"); 
    protected string title = ReadRequest.RequestString("title");
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            inidata();
        }
    }
    private void inidata()
    {
        int totalcount = 0;
        string where = "";
        if (int.Parse(typesl.SelectedValue) > 0)
        {
            where = " Type=" + int.Parse(typesl.SelectedValue);
        }
        tzlist = BLL.GoldCode.GetPageDT_Where(0, int.MaxValue, where, out totalcount);
    }
    protected void typesl_SelectedIndexChanged(object sender, EventArgs e)
    {
        inidata();
    }
}